package feign.okhttp.learn.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import feign.okhttp.learn.feign.fallback.Feign404ServiceFallback;

@FeignClient(name = "feign404Service", url = "http://127.0.0.1:8011/", fallback = Feign404ServiceFallback.class)
public interface Feign404Service {

    @RequestMapping(value = "/search404", method = RequestMethod.GET)
    String searchRepo(@RequestParam("q") String queryStr);

}
